@use 'sass:math';

// 默认设计稿的宽度
$designWidth:1920;
// 默认设计稿的高度
$designHeight:1080;
@function vw($px, $w: $designWidth) {
  @return math.div($px, $w) * 100vw;
}
@function vh($px, $h: $designHeight) {
  @return math.div($px, $h) * 100vh;
}

@mixin ellipsis() {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@mixin word-break {
  white-space: normal;
  word-break: break-all;
  overflow-wrap: break-word;
}
@mixin line-clamp($line: 1) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $line;
  -webkit-box-orient: vertical;
}
